<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.2"
	xmlns:c="http://java.sun.com/jsp/jstl/core"
	xmlns:u="urn:jsptagdir:/WEB-INF/tags/util/"
	xmlns:s="http://www.springframework.org/tags">
<jsp:directive.page contentType="text/html" pageEncoding="UTF-8" />
	<div class="page-header">
		<h1><s:message code="home.title" /></h1>
	</div>
	<h2><s:message code="home.subtitle" /></h2>
	<table class="table table-striped">
		<thead>
			<tr>
				<th class="span2"><s:message code="table.account.id" /></th>
				<th class="span7"><s:message code="table.account.label" /></th>
				<th class="span3"><s:message code="table.account.balance" /></th>
			</tr>
		</thead>
		<tbody>
			<c:forEach var="account" items="${accounts}">
				<tr>
					<td>${account.accountId}</td>
					<td><a href="account/${account.accountId}">${account.label}</a></td>
					<td><u:outBalance value="${account.balance}" /></td>
				</tr>
			</c:forEach>
		</tbody>
	</table>
</jsp:root>